﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace PlaceOrder_Core.PlaceOrderModels;

[Table("trade_simulation")]
public partial class TradeSimulation
{
    [Column("id")]
    [Key]
    public int Id { get; set; }

    [Column("user_id")]
    public int UserId { get; set; }

    [Column("tscode")]
    public string Tscode { get; set; } = null!;

    [Column("orderdate")]
    public DateTime Orderdate { get; set; }

    [Column("price")]
    public decimal Price { get; set; }

    [Column("volume")]
    public int Volume { get; set; }

    [Column("tradedate")]
    public DateTime? Tradedate { get; set; }

    [Column("result")]
    public string? Result { get; set; }

    [Column("dealtype")]
    public string Dealtype { get; set; } = null!;

    [Column("status")]
    public int? Status { get; set; }

    [Column("opponent_id")]
    public string? OpponentId { get; set; }

    [Column("profit")]
    public decimal? Profit { get; set; }

    [Column("onholdvolume")]
    public int? Onholdvolume { get; set; }

    [Column("netprice")]
    public decimal? Netprice { get; set; }

    [Column("pvbp")]
    public decimal? Pvbp { get; set; }

    [Column("brokerage")]
    public decimal? Brokerage { get; set; }


    [Column("ordertype")]
    public short? Ordertype { get; set; }

    [Column("guid")]
    public Guid? Guid { get; set; }

    [Column("pvpb_rate")]
    public decimal? PvpbRate { get; set; }

    [Column("balance_order")]
    public int? BalanceOrder { get; set; }
}
